package ch08;

public class GenderMain {
    public static void main(String[] args) {
        System.out.println(Gender.Male);
        System.out.println(Gender.Female);
        System.out.println(Gender.Male.toString());
        System.out.println(Gender.Female.toString());
        Gender gender = Gender.Female;
//        gender = Gender.Male;
        gender = Gender.valueOf("Male");
        System.out.println(Gender.Male.compareTo(gender));
        System.out.println(Gender.Male.equals(gender));
        for (Gender g : Gender.values()){
            System.out.println(g);
        }
    }
}
